pwt_admin
pwt_admin_init
pwt_download
pwt_download_404_template
pwt_media_handle_upload
pwt_plugin_init
pwt_show_media_upload
pwt_upload_dir
pwt_upload_dir_image
pwt_wp_enqueue_scripts
WP_USE_THEMES
pwt_admin()
Declare admin pages
pwt_admin_init()
Admin init actions
pwt_download()
pwt_download_404_template()
pwt_media_handle_upload(string $file_id, int $post_id, array $post_data, array $overrides) : string
This handles the file upload to download in a payment button
| since | 1.0 |
|---|---|
| uses | return the current time in mysql format |
| uses | Upload the attachment |
stringIndex into the {@link $_FILES} array of the upload
intThe post ID the media is associated with
arrayallows you to overwrite some of the attachment
arrayallows you to override the {@link wp_handle_upload()} behavior
\WP_Error |
if the file couldn't be upload |
|---|
stringthe pathinfo of the attachmentpwt_plugin_init()
Register plugin actions
pwt_show_media_upload()
| uses | Check if the user have perms to upload files |
|---|---|
| uses | Print the error page if the user can't upload files |
| uses | Add the function pwt_upload_dir |
| uses | init media_upload_type |
| deprecated | since version 0.9 |
pwt_upload_dir() : array
arraypwt_upload_dir_image() : array
arraypwt_wp_enqueue_scripts()
Enqueue plugin style-file
WP_USE_THEMES